﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Nido.Common
{
    public static class GlobalParameters
    {
        //public static int GET_READER_ID()
        //{
        //    int readerId;
        //    int.TryParse(PortalCookie.Get("SkyWalker", "ReaderId"), out readerId);
        //    return readerId;
        //}
        //public static string GET_READER_NAME()
        //{
        //    string readerName;
        //    readerName = PortalCookie.Get("SkyWalker", "ReaderName").ToString();
        //    return readerName;
        //}
        //public static int GET_WORKSTATION_ID()
        //{
        //    int workstationId;
        //    int.TryParse(PortalCookie.Get("SkyWalker", "WorkStationId"), out workstationId);
        //    return workstationId;
        //}
        //public static string GET_WORKSTATION_NAME()
        //{
        //    string workstationName;
        //    workstationName = PortalCookie.Get("SkyWalker", "WorkStationName").ToString();
        //    return workstationName;
        //}
        //public static int GET_WORKCENTER_ID()
        //{
        //    int workCenterId;
        //    int.TryParse(PortalCookie.Get("SkyWalker", "WorkCenterId"), out workCenterId);
        //    return workCenterId;
        //}
        //public static string GET_WORKCENTER_NAME()
        //{
        //    string workCenterName;
        //    workCenterName = PortalCookie.Get("SkyWalker", "WorkStationName").ToString();
        //    return workCenterName;
        //}
        //public static int GET_TEAM_ID()
        //{
        //    int teamId;
        //    int.TryParse(PortalCookie.Get("SkyWalker", "TeamId"), out teamId);
        //    return teamId;
        //}
        //public static string GET_TEAM_NAME()
        //{
        //    string teamName;
        //    teamName = PortalCookie.Get("SkyWalker", "Team").ToString();
        //    return teamName;
        //}
        //public static int GET_SHIFT_ID()
        //{
        //    int shiftId;
        //    int.TryParse(PortalCookie.Get("SkyWalker", "ShiftId"), out shiftId);
        //    return shiftId;
        //}
        //public static string GET_SHIFT_NAME()
        //{
        //    string shiftName;
        //    shiftName = PortalCookie.Get("SkyWalker", "Shift").ToString();
        //    return shiftName;
        //}
        //public static DateTime GET_EFFECTIVE_DATE()
        //{
        //    DateTime effDate;
        //    DateTime.TryParse(PortalCookie.Get("SkyWalker", "PrdDate"), out effDate);
        //    return effDate;
        //}
    }
}